Optimal. Leaf size=182 \[ \frac {e \tanh ^{-1}\left (\frac {-2 a e+x (2 c d-b e)+b d}{2 \sqrt {a+b x+c x^2} \sqrt {a e^2-b d e+c d^2}}\right )}{(e f-d g) \sqrt {a e^2-b d e+c d^2}}-\frac {g \tanh ^{-1}\left (\frac {-2 a g+x (2 c f-b g)+b f}{2 \sqrt {a+b x+c x^2} \sqrt {a g^2-b f g+c f^2}}\right )}{(e f-d g) \sqrt {a g^2-b f g+c f^2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.22, antiderivative size = 182, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 3, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {960, 724, 206} \begin {gather*} \frac {e \tanh ^{-1}\left (\frac {-2 a e+x (2 c d-b e)+b d}{2 \sqrt {a+b x+c x^2} \sqrt {a e^2-b d e+c d^2}}\right )}{(e f-d g) \sqrt {a e^2-b d e+c d^2}}-\frac {g \tanh ^{-1}\left (\frac {-2 a g+x (2 c f-b g)+b f}{2 \sqrt {a+b x+c x^2} \sqrt {a g^2-b f g+c f^2}}\right )}{(e f-d g) \sqrt {a g^2-b f g+c f^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 724
Rule 960
Rubi steps
\begin {align*} \int \frac {1}{(d+e x) (f+g x) \sqrt {a+b x+c x^2}} \, dx &=\int \left (\frac {e}{(e f-d g) (d+e x) \sqrt {a+b x+c x^2}}-\frac {g}{(e f-d g) (f+g x) \sqrt {a+b x+c x^2}}\right ) \, dx\\ &=\frac {e \int \frac {1}{(d+e x) \sqrt {a+b x+c x^2}} \, dx}{e f-d g}-\frac {g \int \frac {1}{(f+g x) \sqrt {a+b x+c x^2}} \, dx}{e f-d g}\\ &=-\frac {(2 e) \operatorname {Subst}\left (\int \frac {1}{4 c d^2-4 b d e+4 a e^2-x^2} \, dx,x,\frac {-b d+2 a e-(2 c d-b e) x}{\sqrt {a+b x+c x^2}}\right )}{e f-d g}+\frac {(2 g) \operatorname {Subst}\left (\int \frac {1}{4 c f^2-4 b f g+4 a g^2-x^2} \, dx,x,\frac {-b f+2 a g-(2 c f-b g) x}{\sqrt {a+b x+c x^2}}\right )}{e f-d g}\\ &=\frac {e \tanh ^{-1}\left (\frac {b d-2 a e+(2 c d-b e) x}{2 \sqrt {c d^2-b d e+a e^2} \sqrt {a+b x+c x^2}}\right )}{\sqrt {c d^2-b d e+a e^2} (e f-d g)}-\frac {g \tanh ^{-1}\left (\frac {b f-2 a g+(2 c f-b g) x}{2 \sqrt {c f^2-b f g+a g^2} \sqrt {a+b x+c x^2}}\right )}{(e f-d g) \sqrt {c f^2-b f g+a g^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.25, size = 169, normalized size = 0.93 \begin {gather*} \frac {\frac {g \tanh ^{-1}\left (\frac {-2 a g+b (f-g x)+2 c f x}{2 \sqrt {a+x (b+c x)} \sqrt {g (a g-b f)+c f^2}}\right )}{\sqrt {g (a g-b f)+c f^2}}-\frac {e \tanh ^{-1}\left (\frac {-2 a e+b (d-e x)+2 c d x}{2 \sqrt {a+x (b+c x)} \sqrt {e (a e-b d)+c d^2}}\right )}{\sqrt {e (a e-b d)+c d^2}}}{d g-e f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.87, size = 299, normalized size = 1.64 \begin {gather*} -\frac {2 e \sqrt {-a e^2+b d e-c d^2} \tan ^{-1}\left (-\frac {e \sqrt {a+b x+c x^2}}{\sqrt {-a e^2+b d e-c d^2}}+\frac {\sqrt {c} e x}{\sqrt {-a e^2+b d e-c d^2}}+\frac {\sqrt {c} d}{\sqrt {-a e^2+b d e-c d^2}}\right )}{(d g-e f) \left (a e^2-b d e+c d^2\right )}-\frac {2 g \sqrt {-a g^2+b f g-c f^2} \tan ^{-1}\left (-\frac {g \sqrt {a+b x+c x^2}}{\sqrt {-a g^2+b f g-c f^2}}+\frac {\sqrt {c} g x}{\sqrt {-a g^2+b f g-c f^2}}+\frac {\sqrt {c} f}{\sqrt {-a g^2+b f g-c f^2}}\right )}{(e f-d g) \left (a g^2-b f g+c f^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 123.75, size = 1952, normalized size = 10.73
result too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \mathit {sage}_{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 327, normalized size = 1.80 \begin {gather*} \frac {\ln \left (\frac {\frac {\left (b e -2 c d \right ) \left (x +\frac {d}{e}\right )}{e}+\frac {2 a \,e^{2}-2 b d e +2 c \,d^{2}}{e^{2}}+2 \sqrt {\frac {a \,e^{2}-b d e +c \,d^{2}}{e^{2}}}\, \sqrt {\left (x +\frac {d}{e}\right )^{2} c +\frac {\left (b e -2 c d \right ) \left (x +\frac {d}{e}\right )}{e}+\frac {a \,e^{2}-b d e +c \,d^{2}}{e^{2}}}}{x +\frac {d}{e}}\right )}{\left (d g -e f \right ) \sqrt {\frac {a \,e^{2}-b d e +c \,d^{2}}{e^{2}}}}-\frac {\ln \left (\frac {\frac {\left (b g -2 c f \right ) \left (x +\frac {f}{g}\right )}{g}+\frac {2 a \,g^{2}-2 b f g +2 c \,f^{2}}{g^{2}}+2 \sqrt {\frac {a \,g^{2}-b f g +c \,f^{2}}{g^{2}}}\, \sqrt {\left (x +\frac {f}{g}\right )^{2} c +\frac {\left (b g -2 c f \right ) \left (x +\frac {f}{g}\right )}{g}+\frac {a \,g^{2}-b f g +c \,f^{2}}{g^{2}}}}{x +\frac {f}{g}}\right )}{\left (d g -e f \right ) \sqrt {\frac {a \,g^{2}-b f g +c \,f^{2}}{g^{2}}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {c x^{2} + b x + a} {\left (e x + d\right )} {\left (g x + f\right )}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{\left (f+g\,x\right )\,\left (d+e\,x\right )\,\sqrt {c\,x^2+b\,x+a}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (d + e x\right ) \left (f + g x\right ) \sqrt {a + b x + c x^{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________